import { Link } from 'umi';
import { Menu, Layout } from 'antd';
import "antd/es/menu/style/index.css"

const { Header, Content } = Layout;
export default function BasicLayout({ children }) {
  return (
    <Layout>
      <Header>
        <Menu mode="horizontal">
          <Menu.Item>
            <Link to="/">Index</Link>
          </Menu.Item>
          <Menu.Item>
            <Link to="/employee">Employee</Link>
          </Menu.Item>
          <Menu.Item>
            <Link to="/data">List</Link>
          </Menu.Item>
        </Menu>
      </Header>
      <Content>
        {children}
      </Content>
    </Layout>
  );
}
